package com.dayu.sale.domain.vo;

import com.dayu.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class SaleGoodsExport {

    @Excel(name = "供应商")
    private String supplierName;

    @Excel(name = "商品编码")
    private String goodsId;

    @Excel(name = "商品名称")
    private String goodsName;

    @Excel(name = "规格")
    private String specs;

    @Excel(name = "验机报告")
    private String testInfo;

    @Excel(name = "买家名称")
    private String buyerName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;

    @Excel(name = "销售人名称")
    private String saleUserName;

    @Excel(name = "支付方式",readConverterExp = "alipay=支付宝,wechat=微信,cash=现金,bank=银行卡,other=其它")
    private String payMethod;

    @Excel(name = "收款账户",dictType = "recovery_bill_payee")
    private String payAccount;

    @Excel(name = "状态", readConverterExp = "1=待审核,2=通过,3=作废")
    private Integer status;

    @Excel(name = "审核人名称")
    private String checkUserName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    @Excel(name = "快递单号")
    private String trackingNumber;

    @Excel(name = "成本价格")
    private BigDecimal costPrice;

    @Excel(name = "销售金额")
    private BigDecimal salePrice;

    @Excel(name = "运费")
    private BigDecimal freight;

    @Excel(name = "利润")
    private BigDecimal profit;

    @Excel(name = "是否退货", readConverterExp = "0=否,1=是")
    private Integer hasRefund;

    @Excel(name = "报价师")
    private String offerName;

    @Excel(name = "验机人")
    private String testName;
}
